package com.ls.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author pengyu
 * @since 2020-05-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Province extends Model<Province> {

    private static final long serialVersionUID = 1L;

    /**
     * 省份code
     */
    @TableId(value = "province_code")
    private Integer provinceCode;

    /**
     * 省份名称
     */
    private String provinceName;


    @Override
    protected Serializable pkVal() {
        return this.provinceCode;
    }

}
